run:
	go run main.go -cfg=./config.dev.yaml

build:
	GOOS=linux GOARCH=amd64 go build -tags="netgo" -o ./app main.go

logs:
	docker logs -f --tail=300 gim_server

restart:
	git pull
	GOOS=linux GOARCH=amd64 go build -tags="netgo" -o ./app main.go
	docker-compose restart

deploy:
	GOOS=linux GOARCH=amd64 go build -tags="netgo" -o ./app main.go
	docker-compose build
	docker-compose up -d

git:
	git add .
	git commit -m "gj"
	git push

rebuild:
	git pull
	GOOS=linux GOARCH=amd64 go build -tags="netgo" -o ./app main.go
	docker-compose restart